<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018-5-7
  Time: 15:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%

    List<String> list = new ArrayList<String>();
    list.add("hello");
    list.add("hello");
    list.add("hello");
    list.add("hello");

    request.setAttribute("list", list);
%>

<c:forEach items="${list}" var="item">
    ${item}
</c:forEach>
</body>
</html>
